package mobi.hami.huapin.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import mobi.hami.huapin.base.Result;
import mobi.hami.huapin.service.CourierService;
import mobi.hami.huapin.service.UserInfoService;
import mobi.hami.huapin.util.Results;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 快递相关接口
 * Create by 子龙 on 2018/9/05.
 */
@RestController
@RequestMapping(value = "/courier", produces = "application/json")
@Api(description = "快递相关api")
public class CourierController {

    @Autowired
    private CourierService ourierService;

    /**
     * 获取快递机构列表
     */
    @RequestMapping(value = "/list.do", method = RequestMethod.GET)
    @ApiOperation(value = "获取快递机构列表", notes = " ")
    public Result updatePhone(){
        return ourierService.list();
    }
}
